<?php
namespace app\admin\controller;
use think\Controller;
class Setconfig extends Common
{
	//系统设置
	public function index(){
		$data = model('Setconfig')->index();
		$this->assign('data',$data);
		return $this->fetch();
	}

	//赔率与返水率的设置
	public function set(){
		$data = model('Setconfig')->set();
		if($data == 1){
			$this->redirect('admin/setconfig/index');
		}else{
			$this->error('系统设置修改失败');
			exit;
		}
	}


}